﻿function Images(currentValue, lastValue) {                      //logic to set indicator image for kpi tile, may move this server side in final version

    this.currentValue = currentValue;
    this.lastValue = lastValue;

    if (currentValue > lastValue) {                                
        var img = "<img src=\"img/arrowup.png\"></img>";
    }
    else if (currentValue < lastValue) {
        var img = "<img src=\"img/arrowdown.png\"></img>";
    }
    else {
        var img = "<img src=\"img/sameicon.png\"></img>";
    }

    return img;
}
